#ifndef _interrupt_h
#define _interrupt_h

#include "headerfile.h"
#include "main.h"
/******************************************************************************************/
typedef struct
{
	volatile u16 Cnt_100ms;
	volatile u8 Cnt_100ms_Flag;    
	volatile u16 Cnt_20ms;
	volatile u8 Cnt_20ms_Flag;
} cnt_flag_t;

extern cnt_flag_t Time_Flag;

/******************************************************************************************/
void TIM_Init(void);
void TIM_Disable(void);

void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);
//void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan);
void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan);


#endif
















